package com.zzl.example.springboottest.shop;

/**
 * @ClassName Decorator
 * @Description Decorator
 * @Author Zengliang Zheng
 * @Date 2023/5/25 14:35
 * @Version 1.0
 */
public class Decorator extends Order{
    private Order order;
    public Decorator(Order order){
        this.order = order;
    }

    @Override
    public void printOrder() {
        if(null != order){
            order.printOrder();
        }
    }
}

    
